﻿using System;
using System.Data;
using System.Collections.Generic;

using Com.Framework.Data;
using Com.Library.DB;

namespace Com.Library.DB.User
{
	internal class UserLogin : DBDataReader<DataEntity, DataEntity>
	{
		public UserLogin()
			: base(new ConnectionString(), "TSP_User_Login")
		{
		}

		protected override void ParameterInitialize()
		{
			AddParameter("strUserID", SqlDbType.VarChar, 50, SqlDataInOut.Input);
			AddParameter("strMD5PWD", SqlDbType.VarChar, 100, SqlDataInOut.Input);
			AddParameter("strLoginIP", SqlDbType.VarChar, 30, SqlDataInOut.Input);
			AddParameter("n1LoginErrorType", SqlDbType.TinyInt, 1, SqlDataInOut.Output);
		}
	}
}